#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from common import basepath
try:
	import gtk,gobject
except ImportError:
	print "Installa python-gtk2"
	raise SystemExit
if gtk.pygtk_version < (2, 10, 0):
	print 'Questo esempio ha bisogno delle PyGtk >= 2.10'
	raise SystemExit
try:
	from kiwi.ui.views import BaseView
except ImportError:
	print "Installa python-kiwi"
	raise SystemExit

class PrefView(BaseView):
	def __init__(self):
		BaseView.__init__(self,gladefile="netfinity.glade", toplevel_name="preferences")
		
		try:
			#ho usato un png perche' gli xpm usano un solo bit per le trasparenze
			if os.name=='posix':
				self.preferences.set_icon_from_file(basepath()+"/smile.png")
			else:
				self.preferences.set_icon_from_file("smile.png")
		except:
			pass

